package ru.maxmatveev.dyndao;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;

/**
 * @author Max Matveev
 *         Date: Jan 5, 2009
 *         Time: 2:31:49 PM
 */
@SuppressWarnings({"JavaDoc"})
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
public @interface Hql {
    /** HQL query to execute */
    String query();
    int first() default 0;
    int max() default Integer.MAX_VALUE;
}
